package com.redsoil.house.utils;

import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * 作者：weidingqiang on 2017/7/13 11:16
 * 邮箱：dqwei@iflytek.com
 */

public class FragmentUtils {
    public static Bundle ensureArguments(Fragment fragment) {
        Bundle arguments = fragment.getArguments();
        if (arguments == null) {
            arguments = new Bundle();
            fragment.setArguments(arguments);
        }
        return arguments;
    }

}
